package com.syl.service;

import com.syl.entity.Stu;
import com.syl.entity.StudentVO;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface StuService {
    Stu findStuByid(int id);

    Stu findStuByidAndName(int id, String name);

    ArrayList<Stu> findAllBtu();

    ArrayList<Stu> findStuNameAndAge(Map<String, Object> map);

    int addStu(Stu stu);

    int updateStu(Stu stu);

    int deleteById(int id);

    int deleteByIds(List<Integer> ids);

    ArrayList<StudentVO> findAllStuByClass();

    StudentVO findStuBySubject(int sid);

    StudentVO findStudentAndAllSubjectAndTeacherByStuid(int sid);

    List<StudentVO> findAllStuByClassV2();

    StudentVO findStuBySubjectV2(int sid);
}
